package com.ljh.mybatis.service;

import com.ljh.mybatis.mapper.UserInfoMapper;
import com.ljh.mybatis.model.UserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author: Themberfue
 * @date: 2025/3/2 10:22
 * @description:
 */
@Service
public class UserInfoService {
    @Autowired
    UserInfoMapper userInfoMapper;
    public List<UserInfo> getAllUser() {
        return userInfoMapper.selectAll();
    }

    public UserInfo getUserInfoById(Integer id) {
        return userInfoMapper.selectAllById(id);
    }
}
